package com.twu.biblioteca.view.consoleUI.viewActions;

import com.twu.biblioteca.view.ViewAction;

import java.io.PrintStream;

public class QuitViewAction implements ViewAction {

    private final PrintStream output;

    public QuitViewAction(PrintStream output) {
        this.output = output;
    }

    @Override
    public void update(boolean success) {
        if (success)
            output.println("Goodbye");
        else
            output.println("Unable to Quit");
    }
}
